package tako.wisers.com.android.apis.listener;

import android.view.View;
import android.view.View.OnFocusChangeListener;
import android.widget.AutoCompleteTextView;

public class SearchFocusChangeListenser implements OnFocusChangeListener {

	@Override
	public void onFocusChange(View v, boolean hasFocus) {
		if(hasFocus && v instanceof AutoCompleteTextView){
			AutoCompleteTextView searchText = (AutoCompleteTextView) v; 
			searchText.setText(null);
		}
	}

}
